package com.lyhlmj.oop_client.Utils;

import java.awt.*;

public class GetScreenSize {
    public static int[] getFitSize(){
        int[] fitSize = new int[2];

        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        fitSize[0] = (int)(0.9 * screenSize.getWidth());
        fitSize[1] = (int)(0.9 * screenSize.getHeight());
        return fitSize;
    }
}
